import java.io.*;
public class mail implements Serializable{
	private static final long serialVersionUID = -4347650091087745702L;
	private String subject;
    private String sender;
    private String date;
    private String ID;
    private boolean hasattachment;
    public mail(String a,String b,String c,boolean d){
    	this.sender=a;
    	this.subject=b;
    	this.date=c;
    	this.hasattachment=d;
    }
    public void setID(String a){
    	this.ID=a;
    }
    public String getID(){
    	return this.ID;
    }
    public String toString(){
    	return subject+" "+sender+" "+date+" "+hasattachment;
    }
    public boolean hasattachmentornot(){
    	return this.hasattachment;
    }
}
